-- GENERATED SPELL FOR [Ambassador Bloodrage] --


function spell0_7895(pUnit, Event) --@Call of the Grave,n/a--
pUnit:FullCastSpellOnTarget(5137,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7895', 2000, 1)
end

function spell1_7895(pUnit, Event) --@Cripple,n/a--
pUnit:FullCastSpellOnTarget(11443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7895', 18000, 1)
end

function spell2_7895(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7895', 3000, 1)
end

function Sorts_7895(pUnit, Event)
local choix_sorts_7895 = math.random(0, 2)
if choix_sorts_7895 == 0 then
pUnit:RegisterEvent('spell0_7895', 1, 1)
end
if choix_sorts_7895 == 1 then
pUnit:RegisterEvent('spell1_7895', 1, 1)
end
if choix_sorts_7895 == 2 then
pUnit:RegisterEvent('spell2_7895', 1, 1)
end
end

function mob7895_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7895', math.random(1500, 3000), 1)
end

function mob7895_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7895_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7895_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7895, 1, 'mob7895_Action')
RegisterUnitEvent(7895, 2, 'mob7895_Leave')
RegisterUnitEvent(7895, 3, 'mob7895_Kill')
RegisterUnitEvent(7895, 4, 'mob7895_Die')
